package partner_content

import (
	"gitee.com/theegg/go-brick/app/modules/partner_api/partner_content/partner_content_api"
	"github.com/gin-gonic/gin"
)

func InitPartnerContentRoute(routerGroup *gin.RouterGroup) {
	// 内容
	routerGroup.POST("/content/node/list", partner_content_api.GetNodeList)
	routerGroup.POST("/content/node/detail", partner_content_api.GetNodeDetail)
	routerGroup.POST("/content/node/add", partner_content_api.NodeAdd)
	routerGroup.POST("/content/node/edit", partner_content_api.NodeAdd)
	routerGroup.POST("/content/node/del", partner_content_api.NodeDel)
	routerGroup.POST("/content/node/state", partner_content_api.NodeState)
	routerGroup.POST("/content/node/imageUpload", partner_content_api.NodeImageUpload)

	// 内容 - 分类
	routerGroup.POST("/content/node_category/list", partner_content_api.GetNodeCategoryList)
	routerGroup.POST("/content/node_category/detail", partner_content_api.GetNodeCategoryDetail)
	routerGroup.POST("/content/node_category/add", partner_content_api.NodeCategoryAdd)
	routerGroup.POST("/content/node_category/edit", partner_content_api.NodeCategoryAdd)
	routerGroup.POST("/content/node_category/del", partner_content_api.NodeCategoryDel)

	// 内容 - 评论
	routerGroup.POST("/content/node_comment/list", partner_content_api.GetNodeCommentList)
	routerGroup.POST("/content/node_comment/detail", partner_content_api.GetNodeCommentDetail)
	routerGroup.POST("/content/node_comment/del", partner_content_api.NodeCommentDel)
	routerGroup.POST("/content/node_comment/status", partner_content_api.NodeCommentStatus)

	// 内容 - 标签
	routerGroup.POST("/content/tags/list", partner_content_api.GetTagsList)
	routerGroup.POST("/content/tags/detail", partner_content_api.GetNodeCommentDetail)
	routerGroup.POST("/content/tags/del", partner_content_api.NodeCommentDel)
	routerGroup.POST("/content/tags/status", partner_content_api.NodeCommentStatus)
}
